using var stream = new MemoryStream();
HtmlSaveOptions options = new HtmlSaveOptions(SaveFormat.Html)
{
PrettyFormat = true,
ExportHeadersFootersMode = ExportHeadersFootersMode.PerSection,
ExportImagesAsBase…...or if the fonts used in the document are not available on the system...system during conversion. Solution : Make sure that the HtmlSaveOptions...